package com.traffic.api.service;

import com.traffic.api.entity.VirtualTransitCard;

import java.util.List;
import java.util.Map;

/**
 * Created by churcy on 2017/3/2.
 */
public interface VirtualTransitCardService extends BaseService<VirtualTransitCard, Integer> {

    /**
     * 条件查询
     *
     * @param conditions
     * @return
     */
    List<VirtualTransitCard> findByConditions(Map<String, Object> conditions);

    /**
     * 校验是否有卡
     *
     * @param tempConditions
     * @return
     */
    Map<String, Object> checkCard(Map<String, Object> tempConditions);

    VirtualTransitCard getByUserId(String userId);
}
